<!DOCTYPE HTML>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jstest</title>
</head>
<body>
<script type="text/javascript">
<!--
function func() {
    document.write( document.title  );
//    alert( ( document.F1.T1.value - 0 ) + 4 );
}
// -->
</script>	
<form action="#" name="F1">
<input type="TEXT" name="T1" value="123"/>
<br />
<input type="BUTTON" value="OK" onclick="func()" />

</form>
</body>
</html>
